FROM opencloudos/opencloudos:9

# 安装 Python 与 pip
RUN dnf update -y && \
    dnf install -y python3 python3-pip && \
    dnf clean all

# 工作目录
WORKDIR /validator

# 把脚本拷进去
COPY src/phase1/package_validator.py  .
COPY src/phase1/test_config.json      .

# 升级 pip
RUN pip3 install --upgrade pip

# 默认入口
CMD ["python3", "package_validator.py"]